package com.fhao.blog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 将日期转化成字符串类型
 */
public class DateUtils {
    public static String dateFormat(Date date) {
        //2025-07-25 16:45:44
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        return format.format(date);
    }
}
